package com.xuecheng.manager_course.controller;

import com.xuecheng.api.course.CourseCategoryControllerApi;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import com.xuecheng.manager_course.service.CourseCategoryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/course/category")
public class CourseCotegoryController implements CourseCategoryControllerApi {

    @Autowired
    private CourseCategoryService courseCategoryService;
    @GetMapping("/list")
    @Override
    public CategoryNode findList() {
        return courseCategoryService.findList();
    }
}
